* @param FileBackendStore $backend
* @param array $params
* @param LoggerInterface $logger PSR logger instance
- * @throws FileBackendError
+ * @throws InvalidArgumentException
*/
final public function __construct(
FileBackendStore $backend, array $params, LoggerInterface $logger
if ( FileBackend::isStoragePath( $path ) ) {
$res = FileBackend::normalizeStoragePath( $path );
- return ( $res !== null ) ? $res : $path;
+ return $res ?? $path;
}
return $path;
* @return mixed Returns null if the parameter is not set
*/
final public function getParam( $name ) {
- return isset( $this->params[$name] ) ? $this->params[$name] : null;
+ return $this->params[$name] ?? null;
}
/**